# == Schema Information
# Schema version: 8
#
# Table name: unreadeds
#
#  id              :integer(11)   not null, primary key
#  item_id         :integer(11)   
#  subscription_id :integer(11)   
#

class Unreaded < ActiveRecord::Base
  belongs_to :subscription, :counter_cache => true
  belongs_to :item

  def self.get(subscription,item)
    find_by_subscription_id_and_item_id(subscription.id,item.id)
  end

end
